﻿/*
 * @Filename: User.java
 * @CreateTime: 2015-11-13 14:16:44
 * @Version: 1.0
 * @All rights (are) reserved.
 * @author miklechun
 */
package com.wonders.qxmanager.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@SuppressWarnings("serial")
@Entity
@Table(name = "user")
public class User implements Serializable {

	public User() {
	}

	/**
	 * userId
	 */

	@GeneratedValue(generator = "SEQ_user")
	@GenericGenerator(name = "SEQ_user", strategy = "native", parameters = {
			@org.hibernate.annotations.Parameter(name = "sequence", value = "SEQ_user"),
			@org.hibernate.annotations.Parameter(name = "unsaved-value", value = "0") })
	@Column(name = "userid")
	@Id
	private BigDecimal userid;
	

	/**
	 * account
	 */
	@Column(name = "account")
	private String account;
	/**
	 * name
	 */
	@Column(name = "name")
	private String name;
	/**
	 * password
	 */
	@Column(name = "password")
	private String password;
	/**
	 * image
	 */
	@Column(name = "image")
	private String image;
	/**
	 * sex
	 */
	@Column(name = "sex")
	private String sex;
	/**
	 * birthday
	 */
	@Column(name = "birthday")
	private Timestamp birthday;
	/**
	 * telephone
	 */
	@Column(name = "telephone")
	private BigDecimal telephone;
	/**
	 * email
	 */
	@Column(name = "email")
	private String email;
	/**
	 * address
	 */
	@Column(name = "address")
	private String address;
	/**
	 * teamId
	 */
	@Column(name = "teamId")
	private BigDecimal teamid;
	/**
	 * roleId
	 */
	@Column(name = "roleId")
	private BigDecimal roleid;
	/**
	 * leader
	 */
	@Column(name = "leader")
	private String leader;
	/**
	 * organizationId
	 */
	@Column(name = "organizationId")
	private BigDecimal organizationid;
	/**
	 * power
	 */
	@Column(name = "power")
	private String power;

	/**
	 * userId
	 */
	public BigDecimal getUserid() {
		return this.userid;
	}

	/**
	 * userId
	 */
	public void setUserid(BigDecimal userid) {
		this.userid = userid;
	}

	/**
	 * account
	 */
	public String getAccount() {
		return this.account;
	}

	/**
	 * account
	 */
	public void setAccount(String account) {
		this.account = account;
	}

	/**
	 * name
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * password
	 */
	public String getPassword() {
		return this.password;
	}

	/**
	 * password
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * image
	 */
	public String getImage() {
		return this.image;
	}

	/**
	 * image
	 */
	public void setImage(String image) {
		this.image = image;
	}

	/**
	 * sex
	 */
	public String getSex() {
		return this.sex;
	}

	/**
	 * sex
	 */
	public void setSex(String sex) {
		this.sex = sex;
	}

	/**
	 * birthday
	 */
	public Timestamp getBirthday() {
		return this.birthday;
	}

	/**
	 * birthday
	 */
	public void setBirthday(Timestamp birthday) {
		this.birthday = birthday;
	}

	/**
	 * telephone
	 */
	public BigDecimal getTelephone() {
		return this.telephone;
	}

	/**
	 * telephone
	 */
	public void setTelephone(BigDecimal telephone) {
		this.telephone = telephone;
	}

	/**
	 * email
	 */
	public String getEmail() {
		return this.email;
	}

	/**
	 * email
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * address
	 */
	public String getAddress() {
		return this.address;
	}

	/**
	 * address
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * teamId
	 */
	public BigDecimal getTeamid() {
		return this.teamid;
	}

	/**
	 * teamId
	 */
	public void setTeamid(BigDecimal teamid) {
		this.teamid = teamid;
	}

	/**
	 * roleId
	 */
	public BigDecimal getRoleid() {
		return this.roleid;
	}

	public void setRoleid(BigDecimal roleid) {
		this.roleid = roleid;
	}

	/**
	 * leader
	 */
	public String getLeader() {
		return this.leader;
	}

	/**
	 * leader
	 */
	public void setLeader(String leader) {
		this.leader = leader;
	}

	/**
	 * organizationId
	 */
	public BigDecimal getOrganizationid() {
		return this.organizationid;
	}

	/**
	 * organizationId
	 */

	/**
	 * organizationId
	 */
	public void setOrganizationid(BigDecimal organizationid) {
		this.organizationid = organizationid;
	}

	/**
	 * power
	 */
	public String getPower() {
		return this.power;
	}

	/**
	 * power
	 */
	public void setPower(String power) {
		this.power = power;
	}

}